<?php

namespace app\mobile\model;
use think\facade\Cache;
use think\Model;
class AuthRule extends Model {
    public function getNameTextAttr($value,$data)
    {
        $name=$this->column('title','id');
        //$status = [77=>'移动端添加订单',78=>'移动端搜索'];
        return $name[$data['id']];
    }
}